<template>
  <div class="withdrawal">
    <van-nav-bar
      title="提现"
      :left-arrow="true"
      @click-left="onClickLeft"
      @click-right="onClickRight"
    >
      <template #right>
        <van-icon name="bell" size="20" />
      </template>
    </van-nav-bar>
    <div class="yinhang"></div>
    <div class="header">
      <div class="amount">提现金额</div>
      <div class="num">
        <span>¥</span>
        <van-field v-model="num" name="用户名" label placeholder="请输入金额" />
      </div>
      <p class="balance">账户余额：¥6.00</p>
    </div>
    <div class="mode">
      <div class="list">
        <img class="mima" src="@/assets/images/membercenter/mima.png" />
        <div class="list_r">
          <van-field
            :border="false"
            v-model="password"
            :type="passwordshow?'password':''"
            placeholder="密码"
            :rules="[{ required: true, message: '请填写密码' }]"
          />
          <div class="main">
            <img
              @click="passwordshow=!passwordshow"
              v-show="passwordshow"
              src="@/assets/images/membercenter/biyan.png"
            />
            <img
              @click="passwordshow=!passwordshow"
              v-show="!passwordshow"
              src="@/assets/images/membercenter/zhengyan.png"
            />
          </div>
        </div>
      </div>
    </div>
    <p class="wangji">
      <span>忘记密码？</span>
    </p>
    <van-button type="primary" class="btnclass">立即提现</van-button>
    <div class="dialog" v-show="tipshow">
      <div class="tip">
        <img class="zhuangshi" src="@/assets/images/membercenter/zhuangshi.png" />
        <h3>温馨提示</h3>
        <p>1、申请提现时间为：每日09:00-23:00，提现申请成功提交后，将于1-20分钟内可以提现到您所绑定的银行卡账户上</p>
        <p>2、夜间22:00-09:00期间提现申请的资金，需在09:00之后由银行联系系统自动识别提现到账。</p>
        <p>3、每笔提现金额最低200元起投</p>
        <van-button type="primary" class="dialogbtnclass" @click="tipshow=false">朕知道了</van-button>
      </div>
    </div>
  </div>
</template>
<script>
import { Toast } from "vant";
export default {
  name: "recharge",
  components: {},
  computed: {},
  data() {
    return {
      show: false,
      num: null,
      radio: null,
      passwordshow: true,
      tipshow: false,
    };
  },

  mounted() {},
  created() {},
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    onClickRight() {
      this.tipshow = true;
    },
    detailbtn() {
      this.$router.push({
        path: "/investmentprojectsDetails",
        query: {},
      });
    },
  },
};
</script>

<style scoped lang="less">
.withdrawal {
  width: 100%;
  height: 100%;
  background: #f7f8f9;
  text-align: center;
  .header {
    padding: 15px;
    background: #ffffff;

    .num {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e3e4e5;
      span {
        font-size: 29px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #333333;
      }
      .van-cell {
        line-height: 30px;
        font-size: 28px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #333333;
      }
    }
    .balance {
      font-size: 13px;
      font-family: PingFangSC, PingFangSC-Regular;
      font-weight: 400;
      text-align: left;
      color: #999999;
      padding: 13px 0 0 0;
    }
  }
  .amount {
    font-size: 16px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: left;
    color: #333333;
  }
  .yinhang {
    padding: 5px 15px;
    background: #ffffff;
    margin: 8px 0;
  }
  .mode {
    padding: 5px 15px;
    background: #ffffff;
    margin-top: 8px;
    .list {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      .mima {
        width: 19px;
        height: 19px;
      }
      .list_r {
        width: 90%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        // border-left: 1px solid #d4d4d4;
        margin-left: 13px;

        .main {
          img {
            width: 21px;
            height: 14px;
            vertical-align: middle;
          }
          p {
            font-size: 15px;
            font-family: PingFangSC, PingFangSC-Regular;
            font-weight: 400;
            text-align: left;
            color: #333333;
            margin-bottom: 3px;
          }
          span {
            font-size: 13px;
            font-family: PingFangSC, PingFangSC-Regular;
            font-weight: 400;
            text-align: left;
            color: #999999;
          }
        }
      }
    }
  }
  .wangji {
    padding: 16px;
    font-size: 13px;
    font-family: PingFangSC, PingFangSC-Regular;
    font-weight: 400;
    text-align: right;
    color: #999999;
  }
  .btnclass {
    background: linear-gradient(90deg, #caa262, #e2c397);
    border-radius: 5px;
    border: none;
    width: 90%;
    margin: 0 auto;
    font-size: 17px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #7d5319;
  }
  .dialogbtnclass {
    background: linear-gradient(90deg, #caa262, #e2c397);
    border-radius: 5px;
    border: none;
    width: 90%;
    margin: 0 auto;
    font-size: 17px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #7d5319;
    margin-top: 60px;
  }
  .dialog {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    .tip {
      width: 88%;
      height: 340px;
      background: #ffffff;
      border-radius: 8px;
      position: absolute;
      top: 50%;
      left: 50%;
      margin-left: -44%;
      margin-top: -170px;
      padding: 38px 0px 21px 0px;
      .zhuangshi {
        width: 100px;
        height: 94px;
        position: absolute;
        top: -47px;
        left: 50%;
        margin-left: -50px;
      }
      h3 {
        font-size: 20px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #575757;
        padding: 0 27px;
        margin-bottom: 10px;
      }
      p {
        font-size: 12px;
        font-family: PingFangSC, PingFangSC-Regular;
        font-weight: 400;
        text-align: left;
        color: #2b2b2b;
        padding: 0 27px;
        line-height: 30px;
      }
    }
  }
}
</style>